package com.example.secondhandmall.api;

public class ApiConfig {
    public static final int PAGE_SIZE = 8;

    public static final String BASE_URl = "http://120.78.161.237:49159";

    //登录——post——账号、密码
    public static final String LOGIN = "/login";

    //注册用户——post——账号、密码
    public static final String REGISTER = "/user/register";

    //获取用户详情信息——get——用户ID
    // 修改用户详情信息——put——file、id、userId、userName、userSignature
    public static final String USER_INFO = "/userDetail";



    //获取货物列表信息——get——货物类型——用户ID（只传用户Id就是我上架的）
    public static final String GOODS_LIST_BY_CATEGORY = "/goods/list";

    //通过货物Id获取货物信息——get——货物ID、用户ID
    //上架货物——post——goodsAddress、goodsName、goodsPrice、goodsSignature、goodsType、isCollect、multipartFiles、userId
    //删除货物信息——delete——goodsId
    public static final String GOODS_BY_ID = "/goods";

    //获取用户收藏列表——get——userId
    //添加收藏货物——post——goodsId、goodsName、goodsPrice、goodsUrl、userId
    public static final String COLLECT = "/goods/collect";

    //删除收藏货物——delete——id
    public static final String DELETE_COLLECT = "/good/collect";

    //获取用户订单信息——get——userId
    //创建订单信息——post——goodsId、userId
    public static final String OrderList = "/goods/order";

    //搜索——get——msg
    public static final String GOODS_LIST_SEARCH = "/searchGoods";
    public static final String PUT_GOODS = "/app/putgoods";



    //    public static final String BASE_URl = "http://192.168.31.32:8080/renren-fast";
//    public static final String BASE_URl = "http://47.105.65.35:8080/renren-fast";
//    public static final String LOGIN = "/app/login";
//    public static final String REGISTER = "/app/register";
//    public static final String GOODS_LIST = "/app/goodslist/list";
//    public static final String GOODS_LIST_BY_CATEGORY = "/app/goodslist/getListByCategoryId";
//    public static final String GOODS_CATEGORY_LIST = "/app/goodscategory/list";
//    public static final String GOODS_LIST_SEARCH = "/app/goodslist/search";
//    public static final String PUT_GOODS = "/app/putgoods";
//    public static final String COLLECT = "/app/collect";
//    public static final String USER_INFO = "/app/userinfo";
//    public static final String OrderList = "/app/orderlist";
}
